﻿@model MVCExam.Models.ChatModel


@Html.HiddenFor(h => h.UserName)

<link href="~/Content/ChatStyle.css" rel="stylesheet" />
<link href="~/Content/themes/base/jquery.ui.all.css" rel="stylesheet" />


<script src="~/Content/themes/ui/jquery.ui.core.js"></script>
<script src="~/Content/themes/ui/jquery.ui.widget.js"></script>
<script src="~/Content/themes/ui/jquery.ui.resizable.js"></script>
<script src="~/Content/themes/ui/jquery.ui.mouse.js"></script>
<script src="~/Content/themes/ui/jquery.ui.draggable.js"></script>

<script src="~/Scripts/jquery.signalR-2.0.3.js"></script>
<script src="~/signalr/hubs"></script>

<script src="~/Scripts/CRMExamScripts/Chat.js"></script>

@if (Request.IsAuthenticated)
{
    <div id="chatDiv">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Chat</h3>
            </div>
            <div class="panel-body">
                <strong>Users online</strong>
                <div id="divContainer">
                    <div id="divusers" class="users"></div>
                    <input id="hdId" type="hidden" />
                    <input id="hdUserName" type="hidden" />
                </div>
            </div>
        </div>
    </div>
}